package nc.vo.med.mcm.qdkc.qdyjtzd;

import nc.vo.pub.ValidationException;
import nc.vo.trade.pub.HYBillVO;

public class QdyitzBillVO extends HYBillVO {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Override
	public QdyjtzdHVO getParentVO() {
		
		return (QdyjtzdHVO)super.getParentVO();
	}
	
	@Override
	public QdyjtzdBVO[] getChildrenVO() {
		
		return (QdyjtzdBVO[])super.getChildrenVO();
	}
	
	public void validate() throws ValidationException {
		QdyjtzdHVO headVO = getParentVO();
		QdyjtzdBVO[] bodyVO = getChildrenVO();
		if(headVO!=null){
			headVO.validate();
		}
		if(bodyVO!=null && bodyVO.length>0){
			for(int i=0;i<bodyVO.length;i++){
				bodyVO[i].validate();
			}
		}
	}
	
}
